<script >
import TabarItem from "./TabarItem.vue";

export default {
  components: {TabarItem},
  data(){
    return {
      dataList:["首页","列表","我的"]
    }
  }

}
</script>

<template>
  <div>
    <ul>
      <tabar-item v-for="data in dataList" :key="data" :content="data"></tabar-item>
    </ul>
  </div>
</template>

<style scoped>
ul{
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  list-style: none;
}
li{
  flex: 1;
  text-align: center;
}
</style>